package com.lcicl.reggie.comment;/*
  Date: 2023/09/13
  Author: Luochao
  Description:
*/

import java.io.File;

public class deletePNG {

//    @Value("${reggie.path}")
    private static  String basePath = "D:\\Develop\\Java_program\\Reggie\\reggie_take_out\\src\\main\\resources\\backend\\images\\upload\\";

    public static void main(String[] args) {

        String s = "fcd7d0df-fdb3-4868-b5a9-dada2aba85d3.png";
        File file = new File(basePath + s);
        System.out.println(basePath);
        System.out.println(file.exists());
        if (file.exists() && file.isFile()) {
            file.delete();
            System.out.println("123");
        }


    }



}
